<template>
  <div class="edit-dialog meeting-dialog">
    <el-dialog
      title="会议详情"
      :visible.sync="meetingShow"
      width="700px"
      :before-close="handleClose"
      :close-on-click-modal="false"
      custom-class="dialog-box"
    >
      <el-descriptions class="meeting-descriptions" border :column="1">
        <!-- <el-descriptions-item
          label="评审会议时间"
        >
          <span>{{
            mettingTime.reviewTimeStart + " - " + mettingTime.reviewTimeEnd
          }}</span>
        </el-descriptions-item> -->
        <el-descriptions-item
          label="评审会议地点"
          label-class-name="descriptions-item-label"
        >
          <span>{{ mettingTime.reviewAddress }}</span>
        </el-descriptions-item>
      </el-descriptions>
      <div slot="footer" class="dialog-footer">
        <el-button @click="handleClose">关 闭</el-button>
        <!-- <el-button type="primary" @click="submitForm">确 定</el-button> -->
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { getMetting } from "@/api/manage/manage";
export default {
  name: "meetingDialog",
  props: {
    meetingShow: {
      type: Boolean,
      default: "",
    },
    type: {
      type: String,
      default: "",
    },
    proid: {
      type: String,
      default: "",
    },
    approvalId: {
      type: String,
      default: "",
    },
  },
  data() {
    return {
      rules: {},
      ruleForm: {},
      fileList: [],
      mettingTime: {},
    };
  },
  created() {},
  watch: {
    meetingShow(val) {
      // console.log('calasjk',val,this.proid)
      console.log(val);
      if (val == true) {
        this.getMettingList();
      }
    },
  },
  methods: {
    /** 取消按钮 */
    handleClose() {
      this.$emit("changeShowDialog", "false"); //调用父组件的自定义事件，并传值
    },
    /** 确定按钮 */
    submitForm() {
      this.$emit("changeShowDialog", "false");
    },
    getMettingList() {
      getMetting(this.approvalId).then((res) => {
        console.log(res);
        if (res.code == 200) {
          this.mettingTime = res.data;
        }
      });
    },
  },
};
</script>

<style lang="scss">
</style>
